﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="CustomerList.aspx.cs" Inherits="Ewts.BaseData.CustomerList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">

<h2>客 户 基 本 信 息</h2>
<br />
<div class="shadow2">
    <asp:Repeater ID="reptCustomer" runat="server">
        <HeaderTemplate>
            <table id="tbCustomer" class="display" width="100%" cellpadding="0" cellspacing="0" border="0">
                <thead>
                    <tr>
                        <th>公司名称</th>
                        <th>客户编码</th>
                        <th>城市</th>
                        <th>结算地址</th>
                        <th>邮编</th>
                        <th>联系人</th>
                        <th>联系人2</th>
                        <th>电话</th>
                        <th>电话2</th>
                        <th>Email</th>
                        <th>Email2</th>
                        <%--<th>银行名称</th>
                        <th>银行帐号</th>
                        <th>银行代码</th>
                        <th>备案号</th>
                        <th>银行地址</th>--%>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
                    <tr>
                        <td><%# Eval("companyname")%></td>
                        <td><%# Eval("customercode")%></td>
                        <td><%# Eval("city")%></td>
                        <td><%# Eval("settlement")%></td>
                        <td><%# Eval("postcode")%></td>
                        <td><%# Eval("linkman")%></td>
                        <td><%# Eval("linkman2")%></td>
                        <td><%# Eval("phone")%></td>
                        <td><%# Eval("phone2")%></td>
                        <td><%# Eval("Email")%></td>
                        <td><%# Eval("Email2")%></td>
                        <%--<td><%# Eval("BankName")%></td>
                        <td><%# Eval("BankAccount")%></td>
                        <td><%# Eval("BankCode")%></td>
                        <td><%# Eval("PutOnRecord")%></td>
                        <td><%# Eval("BankAddress")%></td>--%>
                        <td>
                            <a href="CustmoerShow.aspx?id=<%# Eval("id")%>">详细</a>
                            <a href="CustomerModify.aspx?id=<%# Eval("id")%>">编辑</a>
                        </td>
                    </tr>
        </ItemTemplate>
        <FooterTemplate>
                </tbody>
            </table>
        </FooterTemplate>
    </asp:Repeater>
</div>              
<script type="text/javascript">

    $(document).ready(function () {

        $('#tbCustomer').dataTable({ "oLanguage":
                { "sUrl": "/jquery/jquery.dataTable.cn.txt" },

                "bJQueryUI": true,
                "sPaginationType": "full_numbers",
                'bPaginate': true,
                "bProcessing": true,
                "iDisplayLength": 20,
                "bSort": true,
                "aaSorting": [[0, "asc"]]
        });

    });
 
</script>
</asp:Content>

